﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SaleManagement.Entity;
using SaleManagement.Model;

namespace SaleManagement.Services.Mapping
{
   public class OrderDetailMapping
    {
       public static OrderDetail ConvertToEntity(ViewModelOrderDetail model)
       {
           OrderDetail entity = new OrderDetail();
           entity.Id = model.Id;
           entity.OrderId = model.OrderId;
           entity.ProductId = model.ProductId;
           entity.Quantity = model.Quantity;
           entity.UnitPrice = model.UnitPrice;
           
           return entity;
       }
    }
}
